import request from "@utils/request";
// 砍价页面接口
export function invite(data) {
  return request.get("/bargain/invite", data, { login: true });
}
// 砍价接口
export function cutPrice(data) {
  return request.post("/bargain/exec", data, { login: true });
}
//首页商品列表接口
export function bargainList(data) {
  return request.get("/new_bargain/list", data, { login: false });
}
/**
 * 分享海报上传到服务器
 * @param {*} data
 */
export function uploadImg(data) {
  return request.post("/h5/upload-image", data);
}
// 获取用户Uid
export function baseuserinfo(data) {
  return request.get("/baseuserinfo", data);
}
// 个人中心-砍价订单列表
export function userCenterList(data) {
  return request.get("/bargain/userCenter/list", data, { login: true });
};
// 个人中心-收益明细列表
export function userCenteRecordlist(data) {
  return request.get("/bargain/userCenter/recordlist", data, { login: true });
};
// 砍价详情
export function cutDetail(data) {
  return request.get("/bargain/share/detail", data);
};
//活动结束页
export function cutEnd(data) {
  return request.get("/bargain/is_end", data);
}
